<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>util-linux</Name>
        <Homepage>http://userweb.kernel.org/~kzak/util-linux-ng/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        <Summary>Various useful Linux utilities</Summary>
        <Description>The util-linux package contains a large variety of low-level system utilities that are necessary for a Linux system to function.</Description>
        <Archive sha1sum="030b92cede3d68816d3206645c4262599175ec8a" type="tarxz">https://www.kernel.org/pub/linux/utils/util-linux/v2.30/util-linux-2.30.1.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>zlib-devel</Dependency>
            <Dependency>eudev-devel</Dependency>
            <Dependency>python-devel</Dependency>
            <Dependency>readline-devel</Dependency>
            <Dependency>shadow</Dependency>
            <Dependency>ncurses-devel</Dependency>
            <Dependency>libcap-ng-devel</Dependency>
            <Dependency>pam-devel</Dependency>
            <!-- <Dependency releaseFrom="2">utempter-devel</Dependency>-->
        </BuildDependencies>
        <Patches>
             <Patch level="1">upstream/util-linux-ng-2.21-login-lastlog.patch</Patch>
             <!--Patch level="1">upstream/0001-sfdisk-support-empty-label-use-case.patch  </Patch-->
         </Patches>
    </Source>

    <Package>
        <Name>util-linux</Name>
        <RuntimeDependencies>
            <Dependency version="current">libutil-linux</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>pam</Dependency>
            <Dependency>perl</Dependency>
            <Dependency>ncurses</Dependency>
            <Dependency>readline</Dependency>
            <Dependency>eudev</Dependency>
            <!--<Dependency>utempter</Dependency>-->
            <Dependency>libcap-ng</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/bin</Path>
            <Path fileType="executable">/sbin</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="info">/usr/share/info</Path>
            <Path fileType="data">/usr/share/misc</Path>
            <Path fileType="data">/usr/share/getopt</Path>
            <Path fileType="data">/usr/share/bash-completion/completions</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
        </Files>
    </Package>

    <Package>
        <Name>uuidd</Name>
        <IsA>service</IsA>
        <IsA>app:console</IsA>
        <PartOf>util.misc</PartOf>
        <Summary>Helper daemon to guarantee uniqueness of time-based UUIDs</Summary>
        <RuntimeDependencies>
            <Dependency>libutil-linux</Dependency>
        </RuntimeDependencies>
        <!-- FIXME: Add COMAR service -->
        <Files>
            <Path fileType="executable">/usr/bin/uuidgen</Path>
            <Path fileType="executable">/usr/sbin/uuidd</Path>
            <Path fileType="config">/usr/lib/tmpfiles.d/uuidd.conf</Path>
            <Path fileType="man">/usr/share/man/man1/uuidgen.1</Path>
            <Path fileType="man">/usr/share/man/man8/uuidd.8</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile target="/usr/lib/tmpfiles.d/uuidd.conf" permission="0644" owner="root">uuidd.tmpfiles</AdditionalFile>
        </AdditionalFiles> 
    </Package>

    <Package>
        <Name>libutil-linux</Name>
        <IsA>library</IsA>
        <Summary>util-linux runtime library</Summary>
        <RuntimeDependencies>
            <Dependency>python</Dependency>
        </RuntimeDependencies>
        <Replaces>
            <Package>libblkid</Package>
            <Package>libuuid</Package>
        </Replaces>
        <Files>
            <Path fileType="library">/lib</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man/man3/uuid*</Path>
            <Path fileType="man">/usr/share/man/man3/libblkid*</Path>
            <Path fileType="man">/usr/share/man/man8/blkid*</Path>
        </Files>
    </Package>

    <Package>
        <Name>libutil-linux-devel</Name>
        <IsA>header</IsA>
        <PartOf>system.devel</PartOf>
        <Summary>libutil-linux header files</Summary>
        <RuntimeDependencies>
            <Dependency release="current">libutil-linux</Dependency>
        </RuntimeDependencies>
        <Replaces>
            <Package>libblkid-devel</Package>
            <Package>libuuid-devel</Package>
        </Replaces>
        <Files>
            <Path fileType="header">/usr/include/</Path>
            <Path fileType="data">/usr/lib/pkgconfig/*.pc</Path>
        </Files>
    </Package>

    <Package>
        <Name>libutil-linux-32bit</Name>
        <PartOf>emul32</PartOf>
        <Summary>32-bit shared libraries for libutil-linux</Summary>
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>ncurses-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
        </RuntimeDependencies>
        <Replaces>
            <Package>libblkid-32bit</Package>
            <Package>libuuid-32bit</Package>
        </Replaces>
        <Files>
            <Path fileType="library">/usr/lib32/</Path>
        </Files>
    </Package>

    <History>
        <Update release="7">
            <Date>2017-09-11</Date>
            <Version>2.30.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="6">
            <Date>2017-03-26</Date>
            <Version>2.29</Version>
            <Comment>add upstream patch.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="5">
            <Date>2017-01-26</Date>
            <Version>2.29</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2016-09-10</Date>
            <Version>2.27.1</Version>
            <Comment>Enable runuser</Comment>
            <Name>Burak Ertürk</Name>
            <Email>burakerturk@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-25</Date>
            <Version>2.27.1</Version>
            <Comment>Release Bump</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-04-27</Date>
            <Version>2.27.1</Version>
            <Comment>Release Bump</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-02-28</Date>
            <Version>2.27.1</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>
